
var PURL = document.getElementById("PURL");
var productLink = document.getElementById("productLink");

PURL.setAttribute("value", productLink.getAttribute("href"));


function sleep(milliseconds) {
  var start = new Date().getTime();
  for (var i = 0; i < 1e7; i++) {
    if ((new Date().getTime() - start) > milliseconds){
      break;
    }
  }
}